package com.springmvc.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.springmvc.demo.model.UserRole;
/*
 * 
 * 保留做权限
 */

@Mapper
public interface UserRoleMapper {
	@Select("SELECT * FROM user_role WHERE userid=#{userid}")
	List<UserRole> userHasRoles(@Param("userid") String userid);
}
